package com.cyy.demo.extend;


import com.cyy.demo.entity.User;
import lombok.Data;
import org.springframework.stereotype.Component;

@Component
@Data
public class BeanUtils {

    private User user;

    public void create(){
        user = new User();
        user.setId(1);
    }

    public void update(){
        user = new User();
        user.setId(2);

    }

    public void update2(){
        user.setId(3);

    }
}
